package com.bank.dao;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.bank.pojo.BankAdmin;

@Component("bankAdminDao")
@Transactional
public class BankAdminDao extends BaseDao{
	public BankAdmin getAdminById(int id){
		BankAdmin admin=(BankAdmin) getSession().createQuery("from BankAdmin where adminId=?").setInteger(0,id).uniqueResult();
		return admin;
	}
}
